  /**
   * Generate time : 2016-05-05 11:23:42
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ck.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCKYXFAReport 
 * table comment : 演习方案从表 
 */
public class ZMCKYXFAReport extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdYxId = " ";		/* 演习主表ID*/
	private String fdWorknumId = " ";		/* 生产班次*/
	private String fdCurrentDate = " ";		/* 当前日期*/
	private String fdDepartmentId = " ";		/* 责任单位ID*/
	private String fdDepartment = " ";		/* 责任单位*/
	private String fdYxQk = " ";		/* 演习执行情况*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYxId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("演习主表ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorknumId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("生产班次");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCurrentDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("当前日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("责任单位ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("责任单位");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYxQk");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("演习执行情况");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCKYXFAReport() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdYxId - 演习主表ID
	 * @return the fdYxId
	 */
	public String getFdYxId() {
		return this.fdYxId;
	}
	
	/**
	 * set the fdYxId - 演习主表ID
	 */
	public void setFdYxId(String fdYxId) {
		this.fdYxId = fdYxId;
	}
	/**
	 * get the fdWorknumId - 生产班次
	 * @return the fdWorknumId
	 */
	public String getFdWorknumId() {
		return this.fdWorknumId;
	}
	
	/**
	 * set the fdWorknumId - 生产班次
	 */
	public void setFdWorknumId(String fdWorknumId) {
		this.fdWorknumId = fdWorknumId;
	}
	/**
	 * get the fdCurrentDate - 当前日期
	 * @return the fdCurrentDate
	 */
	public String getFdCurrentDate() {
		return this.fdCurrentDate;
	}
	
	/**
	 * set the fdCurrentDate - 当前日期
	 */
	public void setFdCurrentDate(String fdCurrentDate) {
		this.fdCurrentDate = fdCurrentDate;
	}
	/**
	 * get the fdDepartmentId - 责任单位ID
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 责任单位ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	/**
	 * get the fdDepartment - 责任单位
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}
	
	/**
	 * set the fdDepartment - 责任单位
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}
	/**
	 * get the fdYxQk - 演习执行情况
	 * @return the fdYxQk
	 */
	public String getFdYxQk() {
		return this.fdYxQk;
	}
	
	/**
	 * set the fdYxQk - 演习执行情况
	 */
	public void setFdYxQk(String fdYxQk) {
		this.fdYxQk = fdYxQk;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdYxId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYxId")), fdYxId));
		setFdWorknumId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorknumId")), fdWorknumId));
		setFdCurrentDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCurrentDate")), fdCurrentDate));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdYxQk(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYxQk")), fdYxQk));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdYxId",StringUtils.toString(fdYxId, eiMetadata.getMeta("fdYxId")));	
			map.put("fdWorknumId",StringUtils.toString(fdWorknumId, eiMetadata.getMeta("fdWorknumId")));	
			map.put("fdCurrentDate",StringUtils.toString(fdCurrentDate, eiMetadata.getMeta("fdCurrentDate")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdDepartment",StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));	
			map.put("fdYxQk",StringUtils.toString(fdYxQk, eiMetadata.getMeta("fdYxQk")));	
			
		return map;
	
	}
}